<template>
  <h3 @click="t+='!'">我是子组件one（儿子）:{{ t }}</h3>
  <h3 @click="age+=1">我是子组件one（儿子）:{{ age }}</h3>
  <hr/>
  <Three/>
</template>

<script lang="ts" setup>
import {inject, provide, ref} from "vue";
import Three from "@/components/05组件通讯/06- provide和inject/three.vue";

const age = ref(222);
const t = inject("t");
provide("ageEr", age);
</script>